function r=adaptindex(rk)
if nargin<1
    rk=[4,4,2,1,1,1];
end
r=zeros(size(rk));
for ii=1:size(rk,2)
    r(ii)=rk(size(rk,2)-ii+1);
end